﻿



@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增-系统参数";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <div class="MyPanel">
                <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                <div class="b d1 k">
                    @*<div class="Title"></div>*@
                    <div class="Content">
                        <p>
                            <label>
                                设备编码：
                            </label>
                            @if (ViewBag.IsCreate == true)
                            {
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @class = "required IsExisted", ajaxurl = "System/SysConfig/IsExist" })
                            }
                            else
                            {
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                            }
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                          
                        </p>
                        <p>
                            <label>
                                其它代码：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            
                        </p>
                        <p>
                            <label>
                                设备状况：
                            </label>
                            <select id="EquipmentArchives" name="EquipmentArchives" class="required">
                                <option value="正常">正常</option>
                                <option value="报废">报废</option>
                                <option value="检修">检修</option>
                            </select>
                        </p>
                        <p>
                            <label>
                                领用状态：
                            </label>
                            <select id="status" name="status" class="required" disabled="disabled">
                                <option value="在库">在库</option>
                                <option value="待领用">待领用</option>
                                <option value="已领用">已领用</option>
                            </select>
                        </p>
                        <p>
                            <label>
                                名称：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>

                        <p>
                            <label>
                                所在工作中心：
                            </label>
                            <select id="Beworkcenter" name="Beworkcenter" class="required" disabled="disabled">
                                <option value="东城自动化车间">东城自动化车间</option>
                            </select>
                        </p>
                        <p>
                            <label>
                                规格型号：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>
                        <p>
                            <label>
                                资产编号：
                            </label>

                            @*<input name="Equip.id" value="1" type="hidden">
                            <input name="Equip.propertycode" type="text" class="textInput valid">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectEquip" lookupgroup="Equip">查找带回</a>*@
                            <input id="Equip" name="Equip.id" value="1" type="hidden">
                            <input class="textInput valid" name="Equip.propertycode" type="text" postfield="keyword" suggestfields="Equip" suggesturl="Equipment/EquipmentArchives/SelectEquip" lookupgroup="Equip" autocomplete="off" readonly="readonly">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectEquip" lookupgroup="Equip">查找带回</a>
                        </p>

                        <p>
                            <label>
                                序列号：
                            </label>
                            @*@Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)*@
                            <input class="readonly textInput" name="Equip.order" readonly="readonly" type="text">
                        </p>
                        <p>
                            <label>
                                使用年限：
                            </label>
                            <input class="readonly textInput" name="Equip.agelimit" readonly="readonly" type="text">
                        </p>
                        <p>
                            <label>
                                资产名称：
                            </label>
                            <input class="readonly textInput" name="Equip.propertyName" readonly="readonly" type="text">
                        </p>
                        <p>
                            <label>
                                使用日期：
                            </label>
                            <input class="readonly textInput" name="Equip.Udate" readonly="readonly" type="text">

                        </p>
                    </div>
                </div>
                <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
            </div>


            <div class="MyPanel">
                <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                <div class="b d1 k">
                    @*<div class="Title"></div>*@
                    <div class="Content">

                        <p>
                            <label>
                                工作中心代码：
                            </label>
                            <input name="Workcenter.id" value="1" type="hidden">
                            <input name="Workcenter.Workcentercode" type="text" class="textInput valid">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectWorkcenter" lookupgroup="Workcenter">查找带回</a>
                            @*<input id="Workcenter" name="Workcenter.id" value="1" type="hidden">
                            <input class="required textInput valid" name="Workcenter.Workcentercode" type="text" postfield="keyword" suggestfields="Workcentercode" suggesturl="Equipment/EquipmentArchives/SelectWorkcenter" lookupgroup="Workcenter" autocomplete="off">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectWorkcenter" lookupgroup="Workcenter">查找带回</a>*@
                        <p>
                            <label>
                                工作中心名称：
                            </label>
                            <input class="readonly textInput" name="Workcenter.Workcentername" readonly="readonly" type="text">
                        </p>
                        <p>
                            <label>
                                保管人：
                            </label>
                            <input name="People.id" value="1" type="hidden">
                            <input name="People.PeopleName" type="text" class="textInput valid">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectPeople" lookupgroup="People">查找带回</a>
                            @*<input id="People" name="People.id" value="1" type="hidden">
                            <input class="required textInput valid" name="People.PeopleName" type="text" postfield="keyword" suggestfields="PeopleName" suggesturl="Equipment/EquipmentArchives/SelectPeople" lookupgroup="People" autocomplete="off">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectPeople" lookupgroup="People">查找带回</a>*@
                        </p>
                        <p>
                            <label>
                                运行时间/H：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>

                        <p>
                            <label>
                                存放位置：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>
                        <p>
                            <label>
                                周期单位：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>
                        <p>
                            <label>
                                启用日期：
                            </label>
                            <input class="date textInput" id="Sdate" name="Sdate" pattern="yyyy-MM-dd" type="text" value="">

                        </p>
                        <p>
                            <label>
                                报废日期：
                            </label>
                            <input class="date textInput" id="Edate" name="Edate" pattern="yyyy-MM-dd" type="text" value="">
                        </p>
                        <p style="width:100%;height:35px;">
                            <label>
                                备注:
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Value, new { style = "width:70%;height:40px;" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                        </p>
                        <p></p>
                        <p></p>
                    </div>
                </div>
                <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
            </div>


            <div class="MyPanel">
                <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                <div class="b d1 k">
                    <div class="Content">

                        <p>
                            <label>
                                设备组代码：
                            </label>
                            <input name="EquipOrganize.id" value="1" type="hidden">
                            <input name="EquipOrganize.code" type="text" class="textInput valid">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectEquipOrganize" lookupgroup="EquipOrganize">查找带回</a>
                            @*<input id="EquipOrganize" name="EquipOrganize.id" value="1" type="hidden">
                            <input class="required textInput valid" name="EquipOrganize.code" type="text" postfield="keyword" suggestfields="EquipOrganize" suggesturl="Equipment/EquipmentArchives/SelectEquipOrganize" lookupgroup="EquipOrganize" autocomplete="off">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectEquipOrganize" lookupgroup="EquipOrganize">查找带回</a>*@
                        </p>

                        <p>
                            <label>
                                设备组名称：
                            </label>
                            <input class="readonly textInput" name="EquipOrganize.name" readonly="readonly" type="text">
                        </p>
                        <p>
                            <label>
                                设备类别代码：
                            </label>
                            @*<input id="unit" style="width:75px" class="readonly textInput" readonly="readonly" name="EquipOrganize.groupcode" type="text" />
                            <input id="unit" style="width:75px" class="readonly textInput" readonly="readonly" name="EquipOrganize.groupname" type="text" />*@
                            <input class="readonly textInput" name="EquipOrganize.groupcode" readonly="readonly" type="text">
                        </p>
                        <p>
                            <label>
                                设备类别名称：
                            </label>
                            <input class="readonly textInput" name="EquipOrganize.groupname" readonly="readonly" type="text">
                        </p>
                    </div>
                </div>
                <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
            </div>



            <table class="list" width="100%">
                <thead>
                    <tr class="header">
                        <th colspan="5">参数明细</th>
                    </tr>
                    <tr>
                        <th>参数项目代码</th>
                        <th>参数项目名称</th>
                        <th>参数值</th>
                        <th>特殊项</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>001</td>
                        <td>刀长</td>
                        <td><input name="special" type="text" class="textInput valid" value="100(F3042W025Z0215)"></td>
                        <td>刀数</td>
                        <td>备注</td>
                    </tr>
                    <tr>
                        <td>002</td>
                        <td>转数</td>
                        <td><input name="special" type="text" class="textInput valid" value="1500"></td>
                        <td>刀数</td>
                        <td>备注</td>
                    </tr>
                </tbody>
            </table>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
</form>

